﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace XQMSServices
{
    public class XQMSService: IXQMSService
    {
        private int queVar = 0;
        private Queue queueList = new Queue();

        public String GetMessage(String name)
        {
            return "Hello world from " + name + "!";
        }

        public Queue QueueGet()
        {
            return queueList;
        }

        public void Enqueue()
        {
            queVar += 1;
            queueList.Enqueue(queVar);
        }

        public void Dequeue()
        {
            if (queueList.Count > 0) queueList.Dequeue();
        }
    }
}
